﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace Catalogo.Portable.Model
{
    [DataContract]
    public class Categoria : ModelBase
    { 
        public Categoria()
        {
        }

        private string _Id;
        [DataMember(Name = "id")]
        public string Id
        {
            get { return this._Id; }
            set { this.SetProperty(ref this._Id, value); }
        }

        private string _Nome;
        [DataMember]
        public string Nome
        {
            get { return this._Nome; }
            set { this.SetProperty(ref this._Nome, value); }
        }

        private string _SubTitulo;
        [DataMember]
        public string SubTitulo
        {
            get { return this._SubTitulo; }
            set { this.SetProperty(ref this._SubTitulo, value); }
        }

        private string _Descricao;
        [DataMember]
        public string Descricao
        {
            get { return this._Descricao; }
            set { this.SetProperty(ref this._Descricao, value); }
        }

        private string _ImageUrl;
        [DataMember]
        public string ImageUrl
        {
            get { return this._ImageUrl; }
            set { this.SetProperty(ref this._ImageUrl, value); }
        }

        private ObservableCollection<Item> _Itens = new ObservableCollection<Item>();
        [IgnoreDataMember]
        public ObservableCollection<Item> Itens
        {
            get { return this._Itens; }
            set { this.SetProperty(ref this._Itens, value); }
        }
    }
}
